package com.ysd.lis.controller.lab;


import com.ysd.common.Result;
import com.ysd.lis.annotation.LogDetail;
import com.ysd.lis.aspect.OperationType;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.PubReportAttribute;
import com.ysd.lis.service.lab.PubReportAttributeService;
import com.ysd.lis.service.lab.PubReportService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * PUB_REPORT_RULES前端控制器
 * </p>
 *
 * @author Bai
 * @since 2023-11-24
 */
@Api(tags = "报告属性管理")
    @RequestMapping("/api/pubReport")
@RestController
public class PubReportAttributeController extends BaseController {

    @Autowired
    PubReportService pubReportService;
    @Autowired
    PubReportAttributeService reportAttributeService;


    @ApiOperation("设置模版属性")
    @PostMapping("/attributeSave")
    @LogDetail(businessName="reportName",requestParam ="attributeSave", operationType = OperationType.UPDATE, module = "报表管理" ,content = "通过系统管理模块，使用报表管理，设置报表模版【reportName】的属性")
    public Result attributeSave(@RequestBody PubReportAttribute pubReportAttribute ) {
        return reportAttributeService.attributeSave(pubReportAttribute);
    }

}
